package Controls;

import etc.com.market.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BlurMaskFilter;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.widget.EditText;

public class MyImageEditText extends EditText{

	public MyImageEditText(Context context, AttributeSet attrs) {
		super(context, attrs);
		
	}
	@Override
	public void onDraw(Canvas canvas) {
		Paint Pnt = new Paint();
		Pnt.setAntiAlias(true);

		Bitmap eighty8 = BitmapFactory.decodeResource(getContext().getResources(), 
				R.drawable.bullet);

		canvas.drawColor(Color.TRANSPARENT);
		BlurMaskFilter blur = new BlurMaskFilter(10, BlurMaskFilter.Blur.NORMAL);
		Pnt.setMaskFilter(blur);
		canvas.drawBitmap(eighty8, 10, 10, Pnt);
	}
}
